package com.neutech.neudoc.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.neudoc.mapper.DocMapper;
import com.neutech.neudoc.service.DocService;
import com.neutech.po.Doc;
@Service
public class DocServicelmpl implements DocService{
	@Autowired
	private DocMapper docMapper;
	//查询
	@Override
	public Doc inquireDoc(int id) {
		return docMapper.inquireDoc(id);
	}
//增加
	@Override
	public Doc increaseDoc(Doc doc) {
		// TODO Auto-generated method stub
		docMapper.increaseDoc(doc);
		return new Doc();
	}
//修改
	@Override
	public Doc updateDoc(Doc doc) {
		// TODO Auto-generated method stub
		docMapper.updateDoc(doc);
		return new Doc();
	}
//删除
	@Override
	public Doc deleteDoc(Doc doc) {
		// TODO Auto-generated method stub
		docMapper.deleteDoc(doc);
		return new Doc();
	}

}
